<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <input
      type="text"
      id="inputA"
      value="hello"
      style="color: red; background-color: yellow"
    />
    <script>
      /*
       */
      const inputA = document.getElementById("inputA");

      // console.log(inputA.getAttribute("style"));

      console.log(inputA.style.color);
      console.log(inputA.style.backgroundColor);
      console.log(inputA.style["background-color"]);

      setTimeout(() => {
        inputA.style.color = "green";
      }, 3000);
    </script>
  </body>
</html>
